//
//  ZHBaseAVPlayerConfiguration.m
//  AVPlayer
//
//  Created by 正合适 on 2017/10/20.
//  Copyright © 2017年 正合适. All rights reserved.
//

#import "ZHBaseAVPlayerConfiguration.h"
@interface ZHBaseAVPlayerConfiguration ()

/**player颜色*/
@property (nonatomic, strong) UIColor *playerColor;
/**playerLayer颜色*/
@property (nonatomic, strong) UIColor *playerLayerColor;
/**填充方式*/
@property (nonatomic, assign) PlayerGrivaty grivatyType;
/**视频资源加载成功后，是否自动播放*/
@property (nonatomic, assign) BOOL isAutoPlay;
/**展示图片*/
@property (nonatomic, assign) NSTimeInterval placeholderImgTime;

@end

@implementation ZHBaseAVPlayerConfiguration
#pragma mark - 设置player颜色
- (void)configPlayerColor:(UIColor *)color {
    _playerColor = color;
}

#pragma mark - 设置playerlayer颜色
- (void)configPlayerLayerColor:(UIColor *)color {
    _playerLayerColor = color;
}

#pragma mark - 设置填充方式
- (void)configGrivatyType:(PlayerGrivaty)type {
    _grivatyType = type;
}

#pragma mark - 设置是否在加载成功后自动播放自动播放
- (void)configAutoPlay:(BOOL)autoPlay {
    _isAutoPlay = autoPlay;
}

#pragma mark - 设置未播放时的展位图
- (void)configPlaceholderImgWithTime:(NSTimeInterval)time {
    _placeholderImgTime = time;
}

@end
